<%-- 
    Document   : createUsers
    Created on : Jun 25, 2011, 1:52:26 PM
    Author     : Hung
--%>
<%@include file="include_header.jsp"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>User Creation - Lab Assistant Pro</title>
    </head>
    <body>
        <%@include file="pro_header.jsp" %>     
        <%@include file="admin_list.jsp"%>
 
    <center><h1>Create a New User!</h1></center>
    <table ALIGN="center" border="1" cellspacing="0" cellpadding="0">
        <form action="makeUser.jsp" method="post">
            <thead>
                <tr>
                    <th></th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>Name:</td>
                    <td><input type="text" name="name" value=""/></td>
                </tr>
                <tr>
                    <td>User Name:</td>
                    <td><input type="text" name="userName" value=""/></td>
                </tr>
                <tr>
                    <td>Password:</td>
                    <td><input type="password" name="pwd" value=""/></td>
                </tr>
                <tr>
                    <td>Type:</td>
                    <td><select name="userType">
                            <option value ="Student">Student</option>
                            <option value ="Instructor">Instructor</option>
                            <option value="Administrator">Administrator</option>
                        </select>
                    </td>
                </tr>
                <tr><td><input type="submit" value="Create User" name="createUser" />
                        </input></td>
                </tr>

            </tbody>
        </form>
    </table>
    <center>  
        <% //if a user is valid, print out user created
            String code = request.getParameter("code");
            if (code != null && "valid".equals(code))
            {
                out.println("<font color=red>User Created!</font>");
            }
        %>   
    </center>
    <% } //ends user_redirect else statement, html is included here %>
    <% } //ends verifySession.jsp, all html is included in else statment %>
    </body>
</html>
